angular.module('food',[])
.config(['$routeProvider',function($routeProvider){
	$routeProvider
	.when('/food',{
		templateUrl:'html/food/food.html',
		css:'html/food/food.css'
	})
}])
.controller('foodCtrl',function($scope,$http,$rootScope){
	$http.get('http://www.yanhanbo.top/user/food.php?names=&imgs=&standard=&genre=&delivery=&price=&type=%E6%89%80%E6%9C%89').then(function(data){
		$scope.data = data.data.data;
	})
	//详情页
	$rootScope.arr2 = [];
	$scope.dianji = function(x){
		$rootScope.arr2.push(x);
		localStorage.arrr = JSON.stringify($rootScope.arr2);
	}
})
